import { BaseEntity } from '@cool-midway/core';
import { Entity, Column, Index } from 'typeorm';

/**
 * 用户模块-广告播放
 */
@Entity('user_ad')
export class UserAdEntity extends BaseEntity {
  @Index()
  @Column({ comment: '用户ID' })
  userId: number;

  @Column({ comment: '播放状态 0-播放中途退出 1-正常播放结束 2-广告加载失败', default: 0 })
  status: number;

  @Column({ comment: '描述'})
  remark: string;
}